<include file="Index:header" />
   <div class="container">
   
       <div class="title_link">
           <a href="__APP__/" rel="nofollow">首页</a> &nbsp;&gt;&nbsp;
           <a href="__APP__/" title="上海酒店式公寓">公寓</a>&nbsp;&gt;&nbsp;
           <a href="__URL__/listing/id/{$hotel.district}" title="上海{$hotel.district|getConfigVal='district'}酒店式公寓">{$hotel.district|getConfigVal='district'}</a>&nbsp;&gt;&nbsp;
           <strong>{$hotel.name}</strong>
       </div>
       <div class="inside_box">
          <div class="radius1"></div>
            <div class="radius2"></div>
            <div class="radius3"></div>
            <div class="radius4"></div>
            <div class="inside_content png">
              <div style="width:725px;" class="left_table">
                  <h3>{$hotel.name}<i class="fl">地址：{$hotel.id|getHotelAddress}</i></h3>
                    <span><b class="fr pr10 share"><a href="javascript:void(0)" onclick="jdPshowRecommend('http://v.t.sina.com.cn/share/share.php?appkey=2445336821','sina');log('shangpin','sinaweibo');" id="site-sina" title="推荐到新浪微博">sina</a>
                   <a href="javascript:void(0)" onclick="jdPshowRecommend('http://v.t.qq.com/share/share.php?source=1000002&site=http://www.okhome.cn','qzone');log('shangpin','qqweibo');" id="site-qzone" title="推荐到腾讯微博">qzone</a>
                   <a href="javascript:void(0)" onclick="jdPshowRecommend('http://share.renren.com/share/buttonshare/post/1004?','renren');log('shangpin','renren');"  id="site-renren" title="推荐到人人">renren</a>
                   <a href="javascript:void(0)" onclick="jdPshowRecommend('http://www.kaixin001.com/repaste/share.php?','kaixing');log('shangpin','kaixin001');" id="site-kaixing" title="推荐到开心网">kaixing</a>
                   <a href="javascript:void(0)" onclick="jdPshowRecommend('http://www.douban.com/recommend/?','douban');log('shangpin','douban');"  id="site-douban" title="推荐到豆瓣">douban</a>
                   <a href="javascript:void(0)" onclick="jdPshowRecommend('http://profile.live.com/badge/?','MSN');log('shangpin','msn');" id="site-msn" title="推荐到MSN">msn</a>
                   <a href="javascript:void(0)" onclick="log('shangpin','qq');" id="site-qq" title="通过QQ发送链接给好友">qq</a></b></span>
                    <table width="100%" cellspacing="0" cellpadding="0" border="0" class="text_align">
                      <tbody><tr class="table_title">
                        <td width="22%">房型</td>
                        <td width="14%">户型</td>
                        <td width="6%">面积</td>
                        <td width="11%">日租价</td>
                        <td width="11%">周租价</td>
                        <td width="12%">月租价</td>
                        <td width="6%">详情</td>
                        <td width="10%">预定情况</td>
                        <td width="9%" style="padding-right:5px;">预定</td>
                      </tr>
                      <tr class="h10">
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                      </tr>
                      <volist name="house" id="hu">
                   <tr>
                       <td class="tl"><a href="__APP__/House/index/id/{$hu.id}" title="{$hu.name}" >{$hu.name}</a></td>
                       <td>{$hu.layout|getConfigVal=layout}</td>
                       <td>{$hu.area}</td>
                       <td>￥{$hu.day_price}</td>
                       <td>￥{$hu.week_price}</td>
                       <td>￥{$hu.month_price}</td>
                       <td><a href="__APP__/House/index/id/{$hu.id}" title="{$hu.name}" > <font color="red">查看</font></a></td>
                       <td>{$hu.is_free}</td>
                       <td style="padding-right:5px;"><a href="__APP__/House/book/id/{$hu.id}" rel="noflollow"><font color="red">预订</font></a></td>
                   </tr>
                   </volist>
                    </tbody></table>
                </div>
                <div class="right_new_box">
                  <div class="right_new">
                      <h2 class="png">{$hotel.name}</h2>
                        <a href="#pic"> <img src="{$hotel.logo.0.url|getTPImgUrl}"  width="230px" height="230px"></a>
                </div>
              </div>

              <div class="house_content_tab">
                    <ul class="tab_title">
                        <li style="margin-left: -1px;">公寓介绍</li>
                        <li  class="on" style="margin-left: 0px;"><a name="pic" href="#">外观照片</a></li>
                        <li style="margin-left: 0px;" class="">地图导航</li>
                        <li style="margin-left: 0px;" class="">联系/留言</li>
                    </ul>
                    <div class="tab_content_box">
                        <div  class="tab_content" style="display:none">
                           <h3 class="tab_h2">小区介绍</h3>
                              {$hotel.community}
                              <h3 class="tab_h2">周边介绍</h3>
                              {$hotel.around}
                            <h3 class="tab_h2">交通情况</h3>
                              {$hotel.traffic}
                        </div>
                        <div class="tab_content" style="display: block;">
                             <ul>
                                <volist name="hotel.pic" id="img">
                                       <li>
                                               <img alt="{$hotel.name}" src="{$img.url|getTPImgUrl}">
                                       </li>
                                   </volist>
                            </ul>
                        </div>
                        <div class="tab_content" style="display: none;">
                            {$hotel.name}<br />
                            地址：{$hotel.address}<br />
                             <eq name="bdmap" value="1"><div id="bdmap"></div></eq>
                        </div>
                        <!--
                        <div class="tab_content" style="display: none;">
                            <ul>
                               <volist name="hotelList" id="list">
                               <li>
                                   <a href="__URL__/index/id/{$key}">{$list}</a>
                               </li>
                               </volist>
                           </ul>
                        </div>
                        -->
                        <div class="tab_content" style="display: none;">
                          <p style="margin-bottom: 15px;">联系方式:{$house.0.contact}</p>
                            <input type="button" value="点击留言" class="order_btn_orange" onclick="ask()" style="margin-top:10px;">
                          <volist name="message" id="msg">
                            <div class="borbot" <neq name="i" value="0"> style="border-bottom:0 none;" </neq> >
                            <span>会员：<font style="color:#666; font-weight:normal;">{$msg.member_id|getModelName=Member}</font>&nbsp;&nbsp;&nbsp;&nbsp;时间：<font style="color:#666; font-weight:normal;">{$msg.create_time|toDate}</font></span>
                            <span style="font-weight:normal; color:#666; padding-bottom:10px; margin-top:14px;"><font style="font-weight:bold;">咨询内容：</font>{$msg.content}</span>
                            <span style="font-weight:normal; color:#666;"><font style="font-weight:bold;">客服回复：</font>{$msg.id|getAnswerInfo|default="暂无回复"}</span>
                            </div>
                          </volist>
                            
                        </div>
                    </div>
                </div>

            </div>
             <div class="radius4"></div>
            <div class="radius3"></div>
            <div class="radius2"></div>
            <div class="radius1"></div>
        </div>
               
               
              
       
       
   </div>
<include file="Index:footer" />
<script type="text/javascript" src="__PUBLIC__/Js/share.js" charset="gb2312"></script>
<script type="text/javascript">
					    function jdPshowRecommend(url,stype) {
					        var title = "{$hotel.name}";
					        var content = "我在@上海好家服务公寓 发现了一个非常不错的公寓：{$hotel.name}。感觉不错，分享一下";
					        var img ="http://www.okhome.cn/{$hotel.logo.0.url|getTPImgUrl}";
					        var productUrl ="http://www.okhome.cn/Hotel/index/id/{$hotel.id}";
					        var pin = readCookie("pin")||"";
					        if (stype == "qzone") {
					            url = url + "&title=" + content + "&pic=" + img + "&url=" + productUrl + pin;
					        }
					        if (stype == "sina") {
					            url = url + "&title=" + encodeURIComponent(content) + "&pic=" + encodeURIComponent(img) + "&url=" + encodeURIComponent(productUrl) + pin;
					            PostSinaDate();
					            window.open(url, "", "height=500, width=600");
					        }
					        if (stype == "renren") {
					            url = url + "title=" + title +"&content="+ content + "&pic=" + img + "&url=" + productUrl + pin;
					        }
					        if (stype == "kaixing") {
					            url = url + "rtitle=" + title + "&rcontent=" + content + "&rurl=" + productUrl + pin;
					        }
					        if (stype == "douban") {
					            url = url + "title=" + title + "&comment=" + content + "&url=" + productUrl + pin;
					        }
					        if (stype == "MSN") {
					            url = url + "url=" + productUrl + pin + "&title=" + title + "&description=" + content + "&screenshot=" + img;
					        }
					        if (stype != "sina") {
					            window.open(encodeURI(url), "", "height=500, width=600");
					        }
					    }

					    //新浪分享POST数据
					    function PostSinaDate() {
					        var id = $("#name").attr("PshowSkuid");
					        var getCommentUrl = "http://www.okhome.cn/Hotel/index/id/{$hotel.id}";
					        $.getJSONP(getCommentUrl, CallBackGetCommentCount);
					    }
					    function CallBackGetCommentCount(result) {
					        var grade = 5, rev_amount = 0;
					        if (result) {
					            grade = result.AverageScore;
					            rev_amount = result.CommentCount
					        }
					        var id = $("#name").attr("PshowSkuid");
					        var sinarecommendurl = "http://www.okhome.cn/Hotel/index/id/{$hotel.id}"
					        $.getJSON(sinarecommendurl.format(id, grade, rev_amount), function(data) { if (!data) return; });
					    }
              function ask() {
                location.href = "__APP__/Index/ask/pid/{$hotel.id}/type/1";
              }
					</script>
